#include "../source/server.hpp"

int main()
{
    Buffer buf;
    std::string str = "hello!!";
    buf.WriteStringAndPush(str);
    std::cout << buf.ReadAbleSize() << std::endl;

    std::string tmp;
    tmp = buf.ReadAsStringAndPop(buf.ReadAbleSize());
    std::cout << tmp << std::endl;
    std::cout << buf.ReadAbleSize() << std::endl;
    return 0;
}